import request from '../utils/request';

// 获取近一年的订单
export function getOneYearOrder(data){
    return request({
        url:'/order/getOneYearOrder',
        method:'POST',
        data
    })
}

// 获取待消费订单
export function getToPaidOrder(data){
    return request({
        url:'/order/getToPaidOrder',
        method:'POST',
        data
    })
}

// 获取待评价订单
export function getToEvaluateOrder(data){
    return request({
        url:'/order/getToEvaluateOrder',
        method:'POST',
        data
    })
}

// 获取退款订单
export function getToRefundOrder(data){
    return request({
        url:'/order/getToRefundOrder',
        method:'POST',
        data
    })
}